package com.finance_provider.mapper;

import com.entity.Receipt;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/23 8:52
 */
@Mapper
public interface ReceiptMapper {

    /**
     * 添加收款信息
     * @param receipt
     * @return
     */
    Boolean addReceipt(Receipt receipt);

    /**
     * 修改收款信息
     * @param receipt
     * @return
     */
    Boolean updateReceipt(Receipt receipt);

    /**
     * 多条件查询收款信息
     * @param receipt
     * @return
     */
    List<Receipt> queryReceipt(Receipt receipt);

    /**
     * 根据id查询收款信息
     * @param id
     * @return
     */
    Receipt queryReceiptId(Long id);

    /**
     * 根据id删除收款信息
     * @param id
     * @return
     */
    Boolean deleteReceiptId(Long id);

}
